#ifndef DATAMODULE
#define DATAMODULE

#include <database\mysqlDatabase.h>

class model;

class dataModule {

protected:
  
  bool tableExists(mysqlDatabase *db, string tablename);
  virtual bool createTable(mysqlDatabase *db, string tablename);

public:

  dataModule();
  virtual bool post(model *_model) = 0;
};

#endif